package com.lemon.utils.pay;

public class Constants {

	public static String API_URL;
	/**
	 * 存储当前登录用户id的字段名
	 */
	public static final String CURRENT_USER_ID = "CURRENT_USER_ID";

	/**
	 * token有效期（小时）
	 */
	public static final int TOKEN_EXPIRES_HOUR = 72;

	/**
	 * 存放Authorization的header字段
	 */
	public static final String AUTHORIZATION = "authorization";

	/**
	 * 存放 appId的header字段
	 */
	public static final String APPID = "appId";

	/**
	 * 存放user token 的redis key 前缀
	 */
	public static final String USER_TOKEN = "user_token:";

	/**
	 * 存放user info 的redis key 前缀
	 */
	public static final String USERINFO = "user_info:";

	public static final String USERLOGIN = "user_login:";

	/**
	 * 小程序禁用用户 hash
	 */
	public static final String FORBIDDEN_USER = "forbidden_user";

	/**
	 * 存放已加入团 用户数
	 */
	public static final String GROUPMEMBERNUM = "group_mem_num:";

	/**
	 * 存放暂时锁定团成员
	 */
	public static final String GROUPCACHEMEMBERNUM = "group_cache_member:";

	/**
	 * 存放卡券剩余量
	 */
	public static final String couponRemainderNum = "coupon_remainder_num:";

	/**
	 * 存放应用appId 对应 appSecret 的redis key 前缀 校验请求来源合法时用到
	 */
	public static final String APPSECRET = "appSecret:";

	/**
	 * 小程序appId
	 */
	public static final String WeChatAPPID = "wxfb43dc3d5177b01f";
	//		public static final String WeChatAPPID = "wxabde417d36f17e18";

	/**
	 * 小程序APPsecret
	 */
	public static final String WeChatAPPsecret = "d63a540fa9eb64bc087501063d3c9eec";
	//	public static final String WeChatAPPsecret = "d401e2495e77cebe2138ac446878f619";

	/**
	 * app支付
	 */
	public static final String WeChatAPPID_APP = "wx35c1f422e910e9e4";
	public static final String pay_mch_id_app = "1520681551";
	public static final String WeChatAPPsecret_APP = "4187664ecbe5baa5404dd000d8594c0a";
	/**
	 * 存放验证码 redis key前缀
	 */
	public static final String ValidateCode = "validateCode:";

	/**
	 * 存放小程序用户 对应界面 session_key redis 中key 的前缀
	 */
	public static final String SessionKey = "sessionKey:";

	/**
	 * 小程序最小提现金额
	 */
	public static final String MIN_EXTRACT_MONEY_KEY = "extract:min_extract_money";

	/**
	 * 最大提现金额
	 */
	public static final int MAX_EXTRACT_MONEY = 500 * 100;

	/**
	 * 最小提现金额
	 */
	public static final int MIN_EXTRACT_MONEY = 100 * 200;

	public static final String pay_appid = "wxfb43dc3d5177b01f";
	//微信支付的商户id  

	public static final String pay_mch_id = "1502201881";
	//微信支付的商户密钥  
	public static final String pay_key = "cityrun5858588cityrun5858588city";
	//签名方式，固定值  
	public static final String pay_SIGNTYPE = "MD5";
	//交易类型，小程序支付的固定值为JSAPI  
	public static final String pay_TRADETYPE = "JSAPI";

	public static final String pay_TRADETYPE_APP = "APP";

	//支付成功后的服务器回调url  
	//	public static final String pay_notify_url = "http://rc111x.imwork.net:45219/cityRun/buy/payWeChatNotifyUrl";
	//	public static final String refund_notify_url = "http://rc111x.imwork.net:45219/cityRun/buy/refundNotify";
	//	public static final String pay_notify_url_APP = "http://rc111x.imwork.net:45219/cityRun/buy/payWeApp";
	//	public static final String pay_notify_url_ruzhu = "http://rc111x.imwork.net:45219/cityRun/buy/payWeRuzhu";
	//	public static final String CertPath = "D:/apiclient_cert.p12";

	//	public static final String pay_notify_url_APP = "http://47.95.198.40:8080/cityRun/buy/payWeApp";
	//	public static final String refund_notify_url = "http://47.95.198.40:8080/cityRun/buy/refundNotify";
	//	public static final String pay_notify_url_APP = "http://47.95.198.40:8080/cityRun/buy/payWeApp";
	//	public static final String pay_notify_url = "http://47.95.198.40:8080/cityRun/buy/payWeChatNotifyUrl";
	//	public static final String pay_notify_url_ruzhu = "http://47.95.198.40:8080/cityRun/buy/payWeRuzhu";
	//	public static final String CertPath = "/usr/local/cert/apiclient_cert.p12";

	//正式服务器

	public static final String refund_notify_url = "http://47.92.223.94:8080/cityRun/buy/refundNotify";
	public static final String pay_notify_url_APP = "http://47.92.223.94:8080/cityRun/buy/payWeApp";
	public static final String pay_notify_url = "http://47.92.223.94:8080/cityRun/buy/payWeChatNotifyUrl";
	public static final String pay_notify_url_ruzhu = "http://47.92.223.94:8080/cityRun/buy/payWeRuzhu";
	public static final String CertPath = "/usr/local/cert/apiclient_cert.p12";

	//测试地址
	//	public static final String refund_notify_url = "http://47.92.223.94:8088/cityRun/buy/refundNotify";
	//	public static final String pay_notify_url_APP = "http://47.92.223.94:8088/cityRun/buy/payWeApp";
	//	public static final String pay_notify_url = "http://47.92.223.94:8088/cityRun/buy/payWeChatNotifyUrl";
	//	public static final String pay_notify_url_ruzhu = "http://47.92.223.94:8088/cityRun/buy/payWeRuzhu";
	//	public static final String CertPath = "/usr/local/cert/apiclient_cert.p12";

	/**
	 * h5支付交易类型
	 */
	public static final String h5_pay_TRADETYPE = "MWEB";
	/**
	 * h5 支付appid
	 */
	public static final String h5_pay_appid = "wx5f00f3fd11615d46";

	public static final String h5_order = "h5orderno:";

	//微信统一下单接口地址  
	public static final String pay_url = "https://api.mch.weixin.qq.com/pay/unifiedorder";

	/**
	 * 存放轮播图点击数 redis key 前缀
	 */
	public static final String BANNER_CLICK = "banner_click:";

	/**
	 * 课程学习人数 redis key 前缀
	 */
	public static final String COURSE_STUDY_NUM = "course_study_num:";

	/**
	 * 课时学习人数 redis key 前缀
	 */
	public static final String CATE_STUDY_NUM = "cate_study_num:";

	/**
	 * 直播人数 redis key 前缀
	 */
	public static final String LIVE_NUM = "live_num:";

	/**
	 * 直播群组禁言状态 redis key 前缀
	 */
	public static final String FORBID_STATUS = "forbid_status:";

	/**
	 * 直播状态 redis key 前缀
	 */
	public static final String LIVE_STATUS = "live_status:";

	/**
	 * 存储formId redis 前缀
	 */
	public static final String STORE_FORMID = "template_storeFormId_";

	/**
	 * 存储访问记录前缀
	 */
	public static final String VISIT_RECORD = "visit_record_";

	/**
	 * 公众号 APPsecret
	 */
	/*
	 * public static final String PUBLIC_ACCOUNT_SECRET = "20429bd1aa2130fe8f3541dca0e7fb38";
	 * public static final String PUBLIC_ACCOUNT_APPID = "wx5f00f3fd11615d46";
	 */

	public static final String PUBLIC_ACCOUNT_SECRET = "20429bd1aa2130fe8f3541dca0e7fb38";
	public static final String PUBLIC_ACCOUNT_APPID = "wx5f00f3fd11615d46";
}